package cn.wmw.xyy.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EsCourseSearchDto {

        private String chargeName;
        private Long courseTypeId;
        private String gradeName;
        private String keyword;
        private Integer page;
        private BigDecimal priceMax;
        private BigDecimal priceMin;
        private Integer rows;
        private String sortField;
        private String sortType;

    public Integer getPage() {
        return page - 1;
    }
}
